package org.example.volunteerend.service;

import java.util.List;
import java.util.Map;

import org.example.volunteerend.dto.UserLoginRequest;
import org.example.volunteerend.dto.UserRegisterRequest;
import org.example.volunteerend.entity.ProjectCategory;
import org.example.volunteerend.entity.User;

public interface UserService {
    User register(UserRegisterRequest request);
    Map<String, Object> login(UserLoginRequest request);
    User getUserInfo(Integer userId);
    void updateUserInfo(Integer userId, User user);
    void updateAvatar(Integer userId, String avatarUrl);
    
    /**
     * 获取用户感兴趣的分类
     */
    List<ProjectCategory> getUserInterests(Integer userId);
    
    /**
     * 更新用户感兴趣的分类
     */
    void updateUserInterests(Integer userId, List<Integer> categoryIds);
} 